require.config({
    baseUrl: "./js/lib",
    paths: {
        "jquery": ["jquery-1.11.1.min"],
        "jquery.validate": ["jquery.validate"],
        "jquery.methods": ["additional-methods"],
        "idcode": ["jquery.idcode"],
        "register": ["../register"]
    },
    shim: {
        idcode: {
            deps: ["jquery"]
        }
    }
})
//使用模块
require(["register", "jquery"], function (register, $) {
    register.validate();
})